RemoveBackendServers
Description
call RemoveBackendServers to remove the backend server.
Request Method
POST
Request Path
/apsara/route/Slb/RemoveBackendServers
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
LoadBalancerId | BODY | string | Yes | lb-bp1qjwo61pqz3ahl**** | load balancing instance ID. |
BackendServers | BODY | string | Yes | [{"ServerId":"i-2zej4lxhjoq****", "Type": "ecs","Weight":"100"}] | the back-end server to be removed. ServerId:String type, required, backend server ID. Weight:Integer type, required, weight of backend server, value range:0~100. Type: backend server type, value: ecs: ECS instance (default) eni: ENI instance description up to 20 back-end servers can be removed in one call. The example is as follows: remove ECS:[{"ServerId": "i-2zej4lxhjoq ***", "Type": "ecs", "Weight": "100"}] remove ENI:[{"ServerId": "eni-2ze1sdp5 ***","Type": "eni","Weight": "100"}] |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
ServerId | string | i-jjgjgjgggd**** | instance ID of the backend server. |
RequestId | string | 365F4154-92F6-4AE4-92F8-7FF34B540710 | request ID. |
BackendServer | No sample value for this parameter. | No description for this parameter. | |
LoadBalancerId | string | lb-bp1vjkb671z53**** | load balancing instance ID. |
BackendServers | array of backendserver | No sample value for this parameter. | backend server list. |
Weight | integer | 100 | The weight of the back-end server, the range is 0~100. |
Example
Successful Response example
{
"ServerId":"i-jjgjgjgggd****",
"RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
"BackendServer":"",
"LoadBalancerId":"lb-bp1vjkb671z53****",
"BackendServers":"",
"Weight":"100"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}